//工具函数
import axios from 'axios';
class Tools{

	constructor(){

	}

	movieSearch(keywords,type){
		var url;
		switch(type){
			case 'new':
				url='/mock/movie/index_new.json'	
			break;
			case 'happy':
				url='/mock/movie/index_happy.json'
			break;
		}
		var ret=axios(url).then((res)=>{
			return res.data;	
		});

		
	}
}